﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Pager.ascx.cs" Inherits="Pager" %>
<div style="vertical-align:middle">
<asp:LinkButton runat="server" ID="btnFirst" Width="35px" Height="35px" CssClass="page-item"
    Visible="false" OnClick="btnFirst_Click"> |<< </asp:LinkButton>
<asp:LinkButton runat="server" ID="btnPrev" Width="35px" Height="35px" CssClass="page-item"
    OnClick="btnPrev_Click" Visible="false"> << </asp:LinkButton>
<asp:Repeater runat="server" ID="repLink" OnItemCommand="repLink_ItemCommand">
    <ItemTemplate>
        <asp:LinkButton Width="35px" Height="35px" ID="LinkButton1" CssClass='<%#Eval("css") %>'
            runat="server" CommandArgument='<%#Eval("Index") %>'>
         <%# (int.Parse(Eval("Index").ToString())+1) %>
        </asp:LinkButton>
    </ItemTemplate>
</asp:Repeater>

    <asp:LinkButton Width="35px" Height="35px" runat="server" ID="btnNext" CssClass="page-item" OnClick="btnNext_Click"
        Visible="false"> >> </asp:LinkButton>
<asp:LinkButton runat="server" Width="35px" Height="35px" CssClass="page-item" ID="btnLast"
    Visible="false" OnClick="btnLast_Click"><strong> >>| </strong></asp:LinkButton>
<p>
    <asp:Label ID="Label1" runat="server"></asp:Label></p>
</div>